*** Settings ***
Library           RequestsLibrary
Library           Collections

*** Test Cases ***
查询手机号归属地
    Create Session    api    https://tcc.taobao.com    verify=true
    ${params}    Create Dictionary    tel=17665367850
    ${res}    Get Request    api    /cc/json/mobile_tel_segment.htm    params=${params}
    Should Be Equal As Strings    ${res.status_code}    200    #判断返回结果是不是200
    log    ${res}

查询手机号归属地1
    Create Session    api    https://tcc.taobao.com    verify=false
    ${params}    Create Dictionary    tel=17665367850
    ${res}    Get Request    api    /cc/json/mobile_tel_segment.htm    params=${params}
    Should Be Equal As Strings    ${res.status_code}    200    #判断返回结果是不是200
    log    ${res}
